package com.hongminzheng.openapi.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 充值管理栏实体类
 * @author hmz
 * @version v1.0
 * @data 2020/10/27
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Recharge {
  /**
   * id 充值id
   * cusId 客户id
   * orderId 订单id
   * createtime 创建订单时间
   * updatetime 订单更新时间
   * paymentType 支付类型：0：银联 1：微信 2：支付宝
   * money 订单金额
   * state 订单状态 0：未支付 1：已支付 2：已取消
   */
  private Integer id;
  private Integer cusId;
  private String orderId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
  private Integer paymentType;
  private Double money;
  private Integer state;
}
